package com.wanxi.springboot.team.manage.system.mapper;

import com.wanxi.springboot.team.manage.system.model.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    long getPermissionsCount();

    List<Permission> getPermissions(Integer page, Integer limit);

    int addPermission(Permission permission);

    int updatePermission(Permission permission);

    int deletePermission(Integer id);

    List<Permission> getAllPermissions();

    List<Permission> getLeaderExtraPermissions();
}
